import request from '@/utils/request'

// 查询商品参数组列表
export function listSpecification_group(query) {
  return request({
    url: '/catalog/specification_group/list',
    method: 'get',
    params: query
  })
}

// 查询商品参数组详细
export function getSpecification_group(specificationGroupId) {
  return request({
    url: '/catalog/specification_group/' + specificationGroupId,
    method: 'get'
  })
}

// 新增商品参数组
export function addSpecification_group(data) {
  return request({
    url: '/catalog/specification_group',
    method: 'post',
    data: data
  })
}

// 修改商品参数组
export function updateSpecification_group(data) {
  return request({
    url: '/catalog/specification_group',
    method: 'put',
    data: data
  })
}

// 删除商品参数组
export function delSpecification_group(specificationGroupId) {
  return request({
    url: '/catalog/specification_group/' + specificationGroupId,
    method: 'delete'
  })
}

// 导出商品参数组
export function exportSpecification_group(query) {
  return request({
    url: '/catalog/specification_group/export',
    method: 'get',
    params: query
  })
}